package com.cn.wanxi.model;


public class NewsModel extends BaseModel {
    private String title;
    private String content;
    private String author;
    private NewsTypeModel newsType;
    private int readCount;
    private String intro;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public NewsTypeModel getNewsType() {
        return newsType;
    }

    public void setNewsType(NewsTypeModel newsType) {
        this.newsType = newsType;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getReadCount() {
        return readCount;
    }

    public void setReadCount(int readCount) {
        this.readCount = readCount;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Override
    public String toString() {
        return "NewsModel{" +
                "id='" + super.getId() + '\'' +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", intro='" + intro + '\'' +
                ", author='" + author + '\'' +
                ", readCount='" + readCount + '\'' +
                ", createDate='" + super.getCreate_time() + '\'' +
                ", updateDate='" + super.getUpdate_time() + '\'' +
                ", newsType='" + newsType + '\'' +
                ", enable='" + super.getEnabled() + '\'' +
                '}';
    }
}
